<?php
class Frontend_View_Helper_Breadcrumb extends Zend_View_Helper_Abstract
{       
    public function breadcrumb($value = null)
    {
        $crumbs = array();
        $crumbs[] = '<a href="' . $this->view->baseUrl() . '/">' .
                    $this->view->sysInfo()->getTitle() . '</a>';
        if ($this->view->bread) {
            $bread = $this->view->bread;
            $bread = array_reverse($bread);
            foreach ($bread as $category) {
                $crumbs[] = $this->view->linkTo(
                    $this->view->escape($category['title']),
                    '@category?ident=' . $category['id'],
                    'id='. $category['id']
                );
            }
        } else {
            $crumbs[] = $this->view->escape($value);
        }
        return join(' &gt; ', $crumbs);
    }    
}
